package qtdz7;

import javax.swing.*;

public class TorpedoSubmarine extends SeaObject {
    TorpedoSubmarine() {
        super(64, 20);
    }

    public void move() {
        x += speed;
    }

    public ImageIcon getImage() {
        return Images.torpesubm;
    }

    //重写getScore()得分
    public int getScore() {
        return 40;//打掉鱼雷潜艇得40分
    }
}
